package com.whalehearing.tingyou.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.whalehearing.tingyou.common.annotation.Excel;
import com.whalehearing.tingyou.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 用户信息对象 user
 *
 * @author zengjun-qxm
 * @date 2024-09-26
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("app_user")
@ApiModel(value = "User", description = "用户信息实体")
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @TableId(type= IdType.AUTO)
    @ApiModelProperty("用户ID")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    @ApiModelProperty("用户名")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    @ApiModelProperty("密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    @ApiModelProperty("昵称")
    private String nickname;

    /** 邮箱 */
    @Excel(name = "邮箱")
    @ApiModelProperty("邮箱")
    private String email;

    /** 头像 */
    @Excel(name = "头像")
    @ApiModelProperty("头像")
    private String userPic;

    /** 是否删除 0未删除 1已删除 */
    @Excel(name = "是否删除 0未删除 1已删除")
    @ApiModelProperty("是否删除 0未删除 1已删除")
    private Integer isDeleted;

}
